#
# spectClean/src/clean
#

set(clean_SRC
    src/Clean.cpp
    src/Spectrum.cpp
    src/SpectrumProcessing.cpp
)

# === Build the utility library.
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/core)

add_library(spectrum_clean SHARED ${clean_SRC})
set_target_properties(spectrum_clean PROPERTIES
    COMPILE_FLAGS ${OpenMP_CXX_FLAGS}
    LINK_FLAGS ${OpenMP_CXX_FLAGS}
)
target_link_libraries(spectrum_clean
    core
    ${QT_QTCORE_LIBRARY}
)

# Recurse into test subdirectory.
add_subdirectory(test)
